﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Proxificator
{
    class ProxyEqComparer : IEqualityComparer<Proxy>
    {
        public bool Equals(Proxy one, Proxy two)
        {
            // Adjust according to requirements
            return Convert.ToBoolean(StringComparer.InvariantCultureIgnoreCase
                                 .Compare(one.vIpPort, two.vIpPort));
        }

        public int GetHashCode(Proxy item)
        {
            return StringComparer.InvariantCultureIgnoreCase
                                 .GetHashCode(item.vIpPort);
        }
    }
}
